home *** CD-ROM | disk | FTP | other *** search
/ Multimedia Jumpstart / Multimedia Microsoft Jumpstart Version 1.1a (Microsoft).BIN / develpmt / source / sprites / makefile < prev    next >
Encoding:
Makefile  |  1993-04-01  |  1.8 KB  |  96 lines

  1. ##### Module Macro #####
  2. NAME    = sprites
  3. SRC1    = main.c init.c debug.c help.c file.c dib.c
  4. SRC2    = print.c bkgnd.c palette.c draw.c sprite.c 
  5. SRCS    = $(SRC1) $(SRC2)
  6. ASRCS   = ppdbg.asm fast32.asm
  7.  
  8. ##### C7 #####
  9. C7     =  1
  10.  
  11. ##### Library Macro #####
  12. !if $(C7)
  13. LIBS    = libw mlibcew commdlg shell oldnames mmsystem
  14. !else
  15. LIBS    = libw mlibcew commdlg shell mmsystem
  16. !endif
  17. MOD    = -AM
  18.  
  19. ##### Include Macro #####
  20. INCLS    = global.h
  21.  
  22. ##### Resource Macro #####
  23. RCFILES = app.ico app.rc dialogs.dlg
  24.  
  25. ##### DEBUG Defined #####
  26. DEBUG    = 1
  27.  
  28. ##### Build Option Macros #####
  29. !if $(DEBUG)
  30. DDEF    = -DDEBUG -DPPDBG
  31. CLOPT    = -Zid -Od -DSTRICT
  32. MOPT    = -Zi
  33. LOPT    = /CO /LI /MAP /NOPACKC
  34. !else
  35. DDEF    =
  36. CLOPT    = -Os -DSTRICT
  37. LOPT    =
  38. !endif
  39.  
  40. ##### General Macros #####
  41. DEF    =
  42.  
  43. ##### Tool Macros #####
  44. ASM    = masm -Mx $(MOPT) $(DDEF) $(DEF)
  45. CC    = cl -nologo -c $(MOD) -G2sw -Zp -W3 $(CLOPT) $(DDEF) $(DEF)
  46. LINK    = link /NOD /NOE $(LOPT)
  47. RC    = rc $(DDEF) $(DEF)
  48. HC    = hc
  49.  
  50. ##### Inference Rules #####
  51. .c.obj:
  52.     $(CC) $*.c
  53.  
  54. .asm.obj:
  55.     $(ASM) $*.asm;
  56.  
  57. .rc.res:
  58.     $(RC) -r $*.rc
  59.  
  60. ##### Main (default) Target #####
  61. goal: $(NAME).exe $(NAME).hlp
  62.  
  63. ##### Dependents For Goal and Command Line #####
  64. $(NAME).exe: $(SRCS:.c=.obj) $(ASRCS:.asm=.obj) app.def app.res
  65.     $(LINK) @<<
  66.     $(SRCS:.c=.obj) $(ASRCS:.asm=.obj),
  67.     $(NAME).exe,
  68.     $(NAME).map,
  69.     $(LIBS),
  70.     app.def
  71. <<
  72.     $(RC) -T app.res $(NAME).exe
  73. !if $(DEBUG)
  74. !if !$(C7)
  75.     cvpack -p $(NAME).exe
  76. !endif
  77.     mapsym $(NAME).map
  78. !endif
  79.  
  80. $(NAME).hlp: help.hpj help.rtf 
  81.     $(HC) help.hpj
  82.     -del $(NAME).hlp
  83.     ren help.hlp $(NAME).hlp
  84.  
  85. ##### Dependents #####
  86. $(SRCS:.c=.obj): $(INCLS)
  87. app.res: $(RCFILES) $(INCLS)
  88.  
  89. ##### Clean Directory #####
  90. clean:
  91.     -del *.obj
  92.     -del app.res
  93.     -del *.map
  94.     -del *.sym
  95.     -del *.ph
  96.